﻿@{
    ViewBag.Title = "品名视图";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.DWZGridFor<OrderMaterial>()
    .Title("品名视图")
    .Action(@Url.Action("OrderMaterialList"))
    .DefaultSortOption("Name")
    .Columns(col =>
    {
        col.Bind(e => e.Id).IsKey();
        col.Bind(e => e.Date).Width(70).DateFormat("yyyy-MM-dd");
        col.Bind(e => e.SupplierName).Width(160).Align(FlexiGridAlign.Left);
        col.Bind(e => e.Category).EnumKey("MaterialCategory").Width(60);
        col.Bind(e => e.Code).Width(60);
        col.Bind(e => e.Name).Width(100).Align(FlexiGridAlign.Left);
        col.Bind(e => e.TotalWeight).Width(50).Align(FlexiGridAlign.Right);
        col.Bind(e => e.TotalCost).Width(50).Align(FlexiGridAlign.Right);
        col.Bind(e => e.ActualSorage).Width(50).Align(FlexiGridAlign.Right);
        col.Bind(e => e.SafeStorage).Width(50).Align(FlexiGridAlign.Right);
    })
)
